package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;

import java.util.List;


// 菜品模块
public interface DishService {

    // 分页+条件查询
    Page<Dish> findByPage(Integer pageNum, Integer pageSize, String name);
    //新增菜品
    void save(Dish dish);
    //回显菜单
    Dish findById(Long id);
    //修改菜品
    void updateById(Dish dish);
    //批量删除菜品
    void deleteBathIds(List<Long> ids);
    //停售起售
    void updateStatus(Integer status, List<Long> ids);
    //根据分类查询菜品列表
    List<Dish> findListByCategoryId(Long categoryId,String name);
    //菜品展示
    List<Dish> findList(Long categoryId, Integer status);

}
